@import './variable';

*{
    max-height: 10000000000px;
}

html, body{
    height: 100%;
}

#app{

    height: 100%;

    .text-red{
        color: @color-block-red;
    }

    .text-blue{
        color: @color-text-blue;
    }

    .text-gray{
        color: @color-text-gray;
    }

    .text-black{
        color: @color-text-black;
    }
}

.app-right-icon{
    background-image: url("../assets/Chevron-right.svg");
    background-repeat: no-repeat;
    background-size: .8rem 1.3rem;
    background-position: right center;
    background-origin: content-box;
}

.app-right-icon-date{
    background-image: url("../assets/input-rili.svg");
    background-repeat: no-repeat;
    background-size: 1.9rem 1.8rem;
    background-position: right center;
    background-origin: content-box;
}

.app-right-icon-my{
    background-image: url("../assets/previous.png");
    background-repeat: no-repeat;
    background-size: .8rem 1.3rem;
    background-position: right center;
    background-origin: content-box;
    color: @color-white;
}

a:link, a:visited, a:hover, a:active{
    color: @color-text-black;
}



h1, h2, h3, h4, h5, h6, input, p, textarea{
    border: 0;
    padding: 0;
    margin:  0;
}

textarea{
    width: 100%;
    box-sizing: border-box;
}

.clear-float{
    &:after{
        display: block;
        content: '';
        clear: both;
    }
}

body .van-dialog{

    border-radius: .7rem;
    overflow: hidden;
    width: 27rem;

    .van-dialog__header{
        font-size: 1.8rem;
        line-height: 2rem;
        padding-top: 2rem;
        padding-bottom: .8rem;
    }
    .van-dialog__message{
        font-size: 1.5rem;
        line-height: 2.3rem;
        text-align: center;
        padding: 0;
        padding-bottom: 1.5rem;
    }
    .van-hairline--top, .van-dialog__footer--buttons{
        height: 5rem;
        line-height: 5rem;
        font-size: 1.8rem;
        border-top: 1px solid @color-line-gray;

        .van-button--default{
            height: 5rem;
            line-height: 5rem;
            font-size: 1.8rem;
            .van-button__text{
                height: 5rem;
                line-height: 5rem;
                font-size: 1.8rem;
            }
        }
    }
}

body .van-toast--default{
    width: 9rem;
    height: 9rem;
    border-radius: .5rem;

    .van-icon-success, .van-icon-fail{
        &:before{
            content: '';
            background-size: contain;
            background-position: center center;
            background-repeat: no-repeat;
            display: block;
            width: 3.6rem;
            height: 3.6rem;
        }
    }

    .van-loading--circular{
        width: 3.6rem;
        height: 3.6rem;
    }

    .van-icon-success{
        &:before{
            background-image: url("../assets/icon-success.png");
        }
    }
    .van-icon-fail{
        &:before{
            background-image: url("../assets/icon-fail.png");
        }
    }
    .van-toast__text{
        font-size: 1.4rem;
        line-height: 1.6rem;
        margin-top: .8rem;
    }
}
